@charset "utf-8";
@import "reset";
body {
    .web {
        // 抽奖页面开始
        .main {
            width: 100%;
            height: 100%;
            position: absolute;
            background: url(../img/index_bg.png) no-repeat top center/100%;
            background-color: #fe8744;
            .rule_turn {
                width: 15%;
                position: absolute;
                left: 3%;
                top: 2%;
                img {
                    width: 100%;
                }
            }
            .my_prize {
                width: 18%;
                position: absolute;
                top: 0;
                right: 0;
                img {
                    width: 100%;
                }
            }
            .time {
                width: 48.8%;
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                top: 28.5%;
                img {
                    width: 100%;
                }
                .time_con {
                    font-size: 24px;
                    color: #ffdd49;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    width: 100%;
                    text-align: center;
                    vertical-align: middle;
                    span {
                        font-size: 48px;
                        vertical-align: middle;
                        padding: 0 3%;
                    }
                }
            }
            .card {
                width: 73.2%;
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                top: 35%;
                .card_bg {
                    width: 100%;
                    img {
                        width: 100%;
                    }
                }
                .card_f {
                    width: 92.3%;
                    position: absolute;
                    top: 17.5%;
                    left: 50%;
                    transform: translateX(-50%);
                    canvas {
                        width: 100%;
                        height: 100%;
                        position: absolute;
                        z-index: 2;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                    }
                    .card_main {
                        width: 100%;
                        height: 100%;
                        z-index: 1; // display: none;
                        img {
                            width: 100%;
                            height: 100%；
                        }
                    }
                }
            }
            .prize_pool {
                width: 73.2%;
                position: absolute;
                left: 50%;
                top: 67%;
                transform: translateX(-50%);
                overflow: hidden;
                .pool_bg {
                    width: 100%;
                }
                .marquee {
                    width: 84.7%;
                    position: absolute;
                    top: 40%;
                    left: 8%;
                    white-space: nowrap;
                    .pool_hb,
                    .hb_copy {
                        display: inline-block;
                    }
                    .pool_hb {
                        img {
                            width: 14.2%;
                            margin-right: 7%;
                            &:last-child {
                                margin-right: 1%;
                            }
                        }
                    }
                    .hb_copy {
                        img {
                            width: 14.2%;
                            margin-left: 7%;
                            &:first-child {
                                margin-left: 9%;
                            }
                        }
                    }
                }
            }
            .tips {
                width: 100%;
                height: 4%;
                font-size: 22px;
                color: white;
                position: absolute;
                bottom: 0;
                background-color: #ff434e;
                align-items: center;
                display: -webkit-flex;
                justify-content: center;
            }
        } // 抽奖页面结束
        // 规则页面开始
        .rule {
            width: 100%;
            height: 100%;
            position: absolute;
            z-index: 9;
            background-color: rgba($color: #000000, $alpha: 0.7);
            .rule_con {
                width: 80%;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                .rule_detail {
                    width: 100%;
                }
                .rule_close {
                    width: 6%;
                    position: absolute;
                    top: 2%;
                    right: 3%;
                }
            }
        } // 规则页面结束
        // 开奖页面开始
        .prize {
            width: 100%;
            height: 100%;
            position: absolute;
            z-index: 9;
            background-color: rgba($color: #000000, $alpha: 0.7); // transform: translateY(-100%);
            .prize_con {
                width: 100%;
                height: 100%;
                .prize_bg {
                    width: 60%;
                    position: absolute;
                    top: 0;
                    left: 50%;
                    transform: translateX(-50%);
                }
                .prize_juan {
                    width: 49.6%;
                    position: absolute;
                    top: 42.8%;
                    left: 50%;
                    transform: translateX(-50%);
                    img {
                        width: 100%;
                    }
                }
                .prize_coin {
                    width: 60%;
                    position: absolute;
                    left: 50%;
                    transform: translateX(-50%);
                    top: 18%;
                }
                .prize_color {
                    width: 60%;
                    position: absolute;
                    left: 50%;
                    transform: translateX(-50%);
                    top: 12%;
                }
            }
            .prize_close {
                width: 6%;
                position: absolute;
                top: 5%;
                right: 10%;
                img {
                    width: 100%;
                }
            }
        }
        .down {
            animation-name: down;
            animation-duration: 0.4s;
            animation-timing-function: ease-in-out;
            animation-iteration-count: initial;
            animation-direction: normal;
        }
        @keyframes down {
            from {
                transform: translateY(-100%)
            }
            to {
                transform: translateY(0%)
            }
        } // 开奖页面结束
    }
    @media only screen and (max-width: 480px) {
        .web {
            .main {
                .time {
                    .time_con {
                        font-size: 15px;
                        span {
                            font-size: 30px;
                        }
                    }
                }
                .tips {
                    font-size: 12px;
                }
            }
            .prize {
                .prize_con {
                    .prize_juan {
                        top: 274px;
                    }
                }
            }
        }
    }
    @media only screen and (max-width: 414px){
        .web {
            .prize {
                .prize_con {
                    .prize_bg {
                        width: 80%;
                    }
                    .prize_juan {
                        width: 66.6%;
                        top: 42.8%;
                    }
                    .prize_coin {
                        width: 80%;
                    }
                    .prize_color {
                        width: 80%;
                    }
                }
            }
        }
    }
    @media only screen and (max-width: 376px) {
        .web {
            .main {
                .time {
                    .time_con {
                        font-size: 12px;
                        span {
                            font-size: 24px;
                        }
                    }
                }
                .tips {
                    font-size: 10px;
                }
            }
            .prize {
                .prize_con {
                    .prize_bg {
                        width: 80%;
                    }
                    .prize_juan {
                        width: 66.6%;
                        top: 42.8%;
                    }
                    .prize_coin {
                        width: 80%;
                    }
                    .prize_color {
                        width: 80%;
                    }
                }
            }
        }
    }
    @media only screen and (max-width: 370px) {
        .web {
            .prize {
                .prize_con {
                    .prize_juan {
                        top: 282px;
                    }
                }
            }
        }
    }
    @media only screen and (max-width: 340px) {
        .web {
            .main {
                .time {
                    .time_con {
                        font-size: 10px;
                        span {
                            font-size: 20px;
                        }
                    }
                }
                .tips {
                    font-size: 8px;
                }
            }
            .prize{
                .prize_con{
                    .prize_juan{
                        top: 42.8%;
                    }
                }
            }
        }
    }
}